Object methods are where most of the work of an object-oriented program is done. They may include both functions (which return a value) and procedures (which do not). Typically, methods in object-oriented programs are very small, almost never exceeding a page in length, and perform only a single task, thereby increasing modularity.
In short, an object's methods define its behavior.
-- part contents for background part 5
----- text -----
Object Methods
-- part contents for card part 2
----- text -----
In the chess example, typical methods might include: